import 'dart:async';
import 'package:flutter_stort/model/address_entity.dart';

class AddressDao {
  static Future<List<AddressEntity>> getAddress() async {
    List<AddressEntity> listData = [];
    for (var i = 0; i < 10; i++) {
      listData.add(AddressEntity(
        name: "等待$i",
        mobile: "130677522$i",
        province: "湖北省",
        city: "仙桃市",
        area: "沙湖镇",
        detailedAddress: "新河村3组",
        isDefault: (i == 0 ? true : false),
      ));
    }
    return listData;
  }
}
